Allocate MAC addresses using Xensource Inc's new OUI.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 14 Nov 2005 10:06:25 +0000 (11:06 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 14 Nov 2005 10:06:25 +0000 (11:06 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/server/netif.py

index b4ea86de2ca5a8e04e3fe367a50c23d377a7be1f..14b079fdbb9218594a7942c6d318ef53c5a0d582 100644 (file)
@@ -35,16 +35,16 @@ xroot = XendRoot.instance()
 def randomMAC():
     """Generate a random MAC address.
 
-    Uses OUI (Organizationally Unique Identifier) AA:00:00, an
-    unassigned one that used to belong to DEC. The OUI list is
-    available at 'standards.ieee.org'.
+    Uses OUI (Organizationally Unique Identifier) 00-16-3E, allocated to
+    Xensource, Inc. The OUI list is available at
+    http://standards.ieee.org/regauth/oui/oui.txt.
 
     The remaining 3 fields are random, with the first bit of the first
     random field set 0.
 
     @return: MAC address string
     """
-    mac = [ 0xaa, 0x00, 0x00,
+    mac = [ 0x00, 0x16, 0x3e,
             random.randint(0x00, 0x7f),
             random.randint(0x00, 0xff),
             random.randint(0x00, 0xff) ]